package com.sun.memo.entity;

import java.text.SimpleDateFormat;
import java.util.Date;

/**
 * @author wys
 **/
public class Test {
    public static void main(String[] args) {
        Date date = new Date();
        String utilDate = new SimpleDateFormat("yyyy-MM-dd").format(date);
        String[] splitUtilDate = new String[3];
        splitUtilDate = utilDate.split("-");
        for (String s : splitUtilDate) {
            System.out.println(Integer.parseInt(s));
        }
    }
}
